package cn.kgc.client;

import cn.kgc.base.vo.UmsMemberReceiveAddressVo;
import cn.kgc.commons.vo.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.List;

/**
 * <p>添加描述信息</p>
 *
 * @author 卢传琪
 */
@FeignClient(value = "mall-ums",path = "/ums",fallback = UmsFeignClientImpl.class)
public interface UmsFeignClient {

    @GetMapping("/MemberReceiveAddress/mylist")
    Result<List<UmsMemberReceiveAddressVo>> getUmsMemberReceiveAddress(@RequestParam(name = "memberId") Long memberId);

    @GetMapping("/MemberReceiveAddress/{id}")
    Result<UmsMemberReceiveAddressVo> selectOne(@PathVariable Serializable id) ;
}
